import React,{ Component } from 'react';
import { SearchStyle } from './SearchStyle';

 class Search extends Component{

  go = () => {
    this.props.history.go(-1)
  }
     render () {
         return (
         <SearchStyle>
          <div className="head_search">
              <p onClick={ this.go } > <i className=" fa fa-angle-left "> </i> </p>
              <input type="text" placeholder="搜索商品名称、品牌、功效"/>
              <p> 搜索 </p>  
            </div>
         </SearchStyle>
         )
     }
 }

 export default Search